package com.gxa.controller;

import com.gxa.common.R;
import com.gxa.service.WarehouseService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@Api(value = "查询仓库数据test",tags = "查询仓库数据接口API")
public class WarehouseController {
    @Autowired(required = false)
    private WarehouseService warehouseService;

    @RequestMapping(value = "/queryWarehouseByStatus",method = RequestMethod.GET)
    @ApiOperation(value = "查询仓库数据接口",notes = "仓库数据",httpMethod = "GET", response = R.class)
    @ApiResponses({
            @ApiResponse(code=200,message="请求成功"),
            @ApiResponse(code=404,message="找不到页面"),
            @ApiResponse(code=500,message="后台服务错误")
    })
    @ResponseBody
    public R queryWarehouseByStatus(){
        R r = warehouseService.queryWarehouseByStatus();
        return r;
    }
}
